//
//  BMAAlbum.m
//  LZMusicPlayer
//
//  Created by wulanzhou on 2016/11/1.
//  Copyright © 2016年 wulanzhou. All rights reserved.
//

#import "BMAAlbum.h"

@implementation BMAAlbum

/**
 * 推荐唱片
 * @param offset	偏移量
 * @param limmit	获取数量
 * @return
 */
- (NSString *) recommendAlbumOffset:(int)offset limmit:(int)limmit{
    NSMutableString *sb = [[NSMutableString alloc] initWithString:[self baseURLString]];
    [sb appendString:@"&method=baidu.ting.plaza.getRecommendAlbum"];
    [sb appendFormat:@"&offset=%d",offset];
    [sb appendFormat:@"&limit=%d",limmit];
    return sb;
}

/**
 * 唱片信息
 * @param albumid	唱片id
 * @return
 */
- (NSString *) albumInfo:(NSString*) albumid{
    NSMutableString *sb = [[NSMutableString alloc] initWithString:[self baseURLString]];
    [sb appendString:@"&method=baidu.ting.album.getAlbumInfo"];
    [sb appendFormat:@"&album_id=%@",albumid];
    return sb;
}

@end
